package com.bitcola.chainserver.server.trx;


import com.bitcola.chainserver.chain.trx.core.TronApi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController(value = "trx")
@RequestMapping("trx")

public class TrxController {
    @Autowired
    TrxServer trxServer;
    @RequestMapping(value = "scan")
    public String scan(long number) throws Exception {
        var tronAPi = new TronApi();

        trxServer.scanTokenByNumber(tronAPi,number);
        return "ok";
    }

}
